package com.zxl.yjb.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.zxl.yjb.R;
import com.zxl.yjb.bean.ShareMsgBean;

import java.util.List;

public class ShareMsgAdapter extends BaseQuickAdapter<ShareMsgBean, BaseViewHolder> {

    public ShareMsgAdapter(int layoutResId, @Nullable List<ShareMsgBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ShareMsgBean item) {

        helper.setText(R.id.tv_title, item.getTitle());
        helper.setText(R.id.tv_time, item.getAddtime());
        helper.setText(R.id.tv_des, item.getContent());

    }
}
